package com.opencloud.ywt.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.opencloud.ywt.client.model.entity.BhyfBflBody;
import com.opencloud.ywt.client.model.entity.BhyfBflBodyInfo;
import com.opencloud.ywt.client.model.entity.BhyfCity;
import com.opencloud.ywt.client.model.entity.BhyfStudent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.net.ServerSocket;
import java.util.List;


@Repository
public interface BhyfBflBodyMapper extends BaseMapper<BhyfBflBody> {
    /**
     * 获取最新一次身高体重统计列表
     * @param gid
     * @param starttime
     * @param endtime
     * @return
     */
    List<BhyfBflBody> getBflBodyTongJi(@Param("gid")Integer gid, @Param("starttime") String starttime, @Param("endtime")String endtime);

    /**
     * 获取最新一次身高体重明细列表
     * @param gid
     * @param starttime
     * @param endtime
     * @return
     */
    List<BhyfBflBodyInfo> getLastBflBodyCheckList(@Param("gid")Integer gid,@Param("gradeid")Integer gradeid,@Param("classid")Integer classid, @Param("starttime") String starttime, @Param("endtime")String endtime, @Param("personid")Integer personid);

    /**
     * 获取学生每月的最新一次的测量结果
     * @param starttime
     * @param endtime
     * @param personid
     * @return
     */
    List<BhyfBflBodyInfo> getPersonBodyMonthList(@Param("starttime") String starttime, @Param("endtime")String endtime, @Param("personid")Integer personid);
}